package com.kongyz.demo2.component;

/**
 * @author kongyz
 * @date 2018/6/28 22:52
 * @Description: 张良
 */
public class ZhangLiang implements Hero {
    private String name;

    public ZhangLiang(String name) {
        this.name = name;
    }

    public void learnSkills() {
        System.out.println(name+"学习了技能！");
    }
}
